﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Campus.Main.Basic;

namespace Campus.Main.Administrator
{
    public partial class FormForAdministrator : BasicUserForm
    {
        public FormForAdministrator()
        {
            InitializeComponent();
            ToolStripMenuItem arsivGonerToolStripMenuItem = new ToolStripMenuItem();
            ToolStripMenuItem.DropDownItems.Add(arsivGonerToolStripMenuItem);
            
            arsivGonerToolStripMenuItem.Name = "ortalamaVePuanlariYenilemekToolStripMenuItem";
            arsivGonerToolStripMenuItem.Size = new System.Drawing.Size(241, 22);
            arsivGonerToolStripMenuItem.Text = "Arsive Gondermek";
            arsivGonerToolStripMenuItem.Click += arsivGonder_Click;
        }

        private void arsivGonder_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Veri Tabanin Back Up yapmak Istiyormusunuz?","Dikkat",MessageBoxButtons.YesNo)==DialogResult.Yes)
            {
                MessageBox.Show(aDb.CreateBAckUp() ? "Back Up Yapildi" : "Back Up Yapilmadi");
            }
        }
    }
}
